package com.example.everything_is_possible;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

public class ZongheActivity extends AppCompatActivity {

    private Button mbtn_no1;
    private Button mbtn_no2;
    private Button mbtn_slide;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_zonghe);

        mbtn_no1 = findViewById(R.id.btn_no1);
        mbtn_no2 = findViewById(R.id.btn_no2);

        mbtn_no1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = null;
                intent = new Intent(ZongheActivity.this, HomeActivity.class);
                startActivity(intent);
            }
        });

        mbtn_no2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = null;
                intent = new Intent(ZongheActivity.this,FenleiActivity.class);
                startActivity(intent);
            }
        });


        mbtn_slide = findViewById(R.id.btn_ex);

        mbtn_slide.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(ZongheActivity.this,Ex_layoutActivity.class);
                startActivity(intent);
                overridePendingTransition(R.anim.in_from_left,R.anim.out_to_left);
            }
        });
    }
}